# coding=utf-8
"""
    @project: 15python_spider
    @Author：frank
    @file： 02_requests_get_params.py
    @date：2024/1/23 21:08
"""
import requests
from fake_useragent import UserAgent

url = 'http://tieba.baidu.com/f?'
headers = {"User-Agent": UserAgent().random}
params = {
    'kw': '赵丽颖',
    'pn': '50'
}
res = requests.get(url, params=params, headers=headers)
print(res.content.decode('utf-8', 'ignore'))
